From be5b11f388fcb30d367634b65e1e5911251f31be Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 13 Jun 2008 11:21:58 +0100 Subject: [PATCH] kexec: Fix the 32-bit build. Signed-off-by: Keir Fraser --- xen/include/public/kexec.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xen/include/public/kexec.h b/xen/include/public/kexec.h index ac1743c93d..fc19f2fe50 100644 --- a/xen/include/public/kexec.h +++ b/xen/include/public/kexec.h @@ -170,11 +170,11 @@ void vmcoreinfo_append_str(const char *fmt, ...) #define VMCOREINFO_STRUCT_SIZE(name) \ vmcoreinfo_append_str("SIZE(%s)=%zu\n", #name, sizeof(struct name)) #define VMCOREINFO_OFFSET(name, field) \ - vmcoreinfo_append_str("OFFSET(%s.%s)=%zu\n", #name, #field, \ - offsetof(struct name, field)) + vmcoreinfo_append_str("OFFSET(%s.%s)=%lu\n", #name, #field, \ + (unsigned long)offsetof(struct name, field)) #define VMCOREINFO_OFFSET_ALIAS(name, field, alias) \ - vmcoreinfo_append_str("OFFSET(%s.%s)=%zu\n", #name, #alias, \ - offsetof(struct name, field)) + vmcoreinfo_append_str("OFFSET(%s.%s)=%lu\n", #name, #alias, \ + (unsigned long)offsetof(struct name, field)) #endif /* _XEN_PUBLIC_KEXEC_H */ -- 2.30.2